import http from '@/http.js'
import { store } from '@/store'

const func = {
    /**
     * 是否显示提交按钮
     */
    loadNotify: (row) => {
        http.fetchForm({
            url: '/center/queryCenterData',
            data: {}
        }).then((res) => {
            let taskCount = res.data.taskCount
            let msgCount = res.data.msgCount
            store.setAlertsTask(taskCount)
            store.setAlertsMsg(msgCount)
        })
    }
}

export default func
